package com.cskaoyan.service;

import com.cskaoyan.bean.BasePageInfo;
import com.cskaoyan.bean.MarketComment;
import com.cskaoyan.bean.chenfeng.bo.CommentListBo;
import com.cskaoyan.bean.chenfeng.vo.CommentCountVo;
import com.cskaoyan.bean.chenfeng.vo.CommentListVo;
import com.cskaoyan.bean.leihao.po.CommentDeletePo;
import com.cskaoyan.bean.param.CommonData;

/**
 * @Auther: leihao
 * @Date: Created in 16:58 2022/6/28
 */
public interface CommentService {
    CommonData<MarketComment> getCommentList(BasePageInfo basePageInfo, Integer userId, Integer valueId);

    void delete(MarketComment marketComment);

    // 获取评论数量
    CommentCountVo getCommentCount(Integer valueId, Integer type);

    // 获取指定商品的所有评论
    CommonData<CommentListVo> getCommentListWithPage(CommentListBo commentListBo);

    // 发送评论
    MarketComment PostComment(MarketComment marketComment);
}
